import Vue from 'vue'
import Vuex from 'vuex'
import cps from "vuex-persistedstate"

Vue.use(Vuex)

export default new Vuex.Store({
  plugins:[
    cps({
      storage:window.sessionStorage
    })
  ],

  state: {
    tonken:""
  },
  mutations: {
    SET_TONKEN(state,data){
      state.tonken = data
    }
  },
  actions: {
    set_tonken({commit},data){
      commit("SET_TONKEN",data)
    }
  },
  modules: {
  }
})
